Send feedback on this topic.
Teradata.Client.Provider
Read(Byte[],Int32,Int32) Method



Teradata.Client.Provider Namespace > TdBlob Class > Read Method : Read(Byte[],Int32,Int32) Method
Byte array to read data into.
The location within the buffer to read data into.
Number of bytes to read into the buffer.
Reads data into the application provided buffer and advances the current position of the TdStream object.
Syntax
'Declaration
 
Public Overloads Function Read( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
'Usage
 
Dim instance As TdBlob
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.Read(buffer, offset, count)
public int Read( 
   byte[] buffer,
   int offset,
   int count
)
public:
int Read( 
   array<byte>^ buffer,
   int offset,
   int count
) 

Parameters

buffer
Byte array to read data into.
offset
The location within the buffer to read data into.
count
Number of bytes to read into the buffer.

Return Value

Returns the number of bytes read from Teradata Database and written into the buffer which should be equal or less than count.
Exceptions
ExceptionDescription
buffer is null.

count or offset is negative or the sum of offset and count is larger than the buffer length.

The TdBlob is null or TdConnection is closed.
The TdBlob or TdStream is closed / disposed.
Teradata Database returned an error -or- the .NET Data Provider for Teradata detected an error.
Remarks
The .NET Data Provider for Teradata reads the BLOB from the Teradata Database and transfers the Blob content to the application provided buffer.
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdBlob Class
TdBlob Members
Overload List